<h1>Osnovni podaci firme</h1>

<?= $this->Form->create('Company', array('url'=>'/administracija/firma', 'class'=>'entity-form')) ?>
    
    <? $i=0; ?>
    <? foreach($data as $d): ?>
        <?= $this->Form->hidden("Data.{$i}.id", array('value'=>$d['id'])) ?>
        
        <?= $this->Form->label("Data.{$i}.value", $d['title'].":", array('class'=>'large')) ?>
        <?= $this->Form->text("Data.{$i}.value", array('value'=>$d['value'])) ?>
        <? $i++ ?>
    <? endforeach; ?>

    <?= $this->Form->submit('Sačuvaj', array('div'=>false)) ?>
<?= $this->Form->end() ?>